package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/system"
)

func (c *ControllerSystem) FileCategoryUpdate(ctx context.Context, req *system.FileCategoryUpdateReq) (res *system.FileCategoryUpdateRes, err error) {
	res = new(system.FileCategoryUpdateRes)
	res.RowsAffected, err = service.File().DelAttachmentCategory(ctx, req.Id)
	return
}
